package com.scpii.api.persistence.auth;

import org.apache.ibatis.annotations.Param;

import com.scpii.api.domain.auth.Devices;

public interface DevicesMapper {
	/**
	 * @param recordDevices
	 * @return
	 */
	Devices selectBySelective(Devices recordDevices);
	
	/**
	 * 更新IOS设备TOKEN
	 * @param deviceId 设备ID
	 * @param iosToken	TOKEN
	 * @return
	 */
	int updateIOSToken(@Param("deviceId")Long deviceId, @Param("iosToken") String iosToken );
	
	
	
	int deleteByPrimaryKey(Long id);

	int insert(Devices record);

	int insertSelective(Devices record);

	Devices selectByPrimaryKey(Long id);

	int updateByPrimaryKeySelective(Devices record);

	int updateByPrimaryKey(Devices record);


}